package com.eplayer.mqdx.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.eplayer.mqdx.R;
import com.eplayer.mqdx.find.activity.InviteActivity;

public class FindFragment extends Fragment implements OnClickListener{
	private View view;
    private LinearLayout ll_find_invite;
	@Override
	public View onCreateView(LayoutInflater inflater,
			@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

		view = inflater.inflate(R.layout.fragment_find, null);
		initView();
		initDate();
		
		return view;
	}
	private void initView() {
		ll_find_invite = (LinearLayout) view.findViewById(R.id.ll_find_invite);
		ll_find_invite.setOnClickListener(this);
	}
	private void initDate() {
		
	}
	@Override
	public void onClick(View v) {
        switch (v.getId()) {
		case R.id.ll_find_invite:
			Intent intent = new Intent(getActivity(), InviteActivity.class);
			startActivity(intent);
			break;

		default:
			break;
		}		
	}
}
